package com.zmm.zebulon.starter.biz.dict.config;

import com.zmm.zebulon.module.system.api.dict.DictDataApi;
import com.zmm.zebulon.starter.biz.dict.core.util.DictFrameworkUtils;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * description: 字典 配置类
 *
 * @author zebulon
 * package com.zmm.zebulon.starter.biz.dict.config
 * name: ZebulonDictAutoConfiguration
 * date 2024/1/8 21:06
 */
@AutoConfiguration
public class ZebulonDictAutoConfiguration {

    @Bean
    @SuppressWarnings("InstantiationOfUtilityClass")
    public DictFrameworkUtils dictUtils(DictDataApi dictDataApi) {
        DictFrameworkUtils.init(dictDataApi);
        return new DictFrameworkUtils();
    }

}
